//
//  BIZPolicyAnswerCell.m
//  biz
//
//  Created by LXL on 2017/7/7.
//  Copyright © 2017年 jieshuibao. All rights reserved.
//

#import "BIZPolicyAnswerCell.h"
#import "BIZSynchronousTutorialModel.h"

@interface BIZPolicyAnswerCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@property (weak, nonatomic) IBOutlet UILabel *dateLabel;

@end
@implementation BIZPolicyAnswerCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

-(void)setSynchronousAnswerModel:(BIZSynchronousAnswerModel *)synchronousAnswerModel {
    _synchronousAnswerModel = synchronousAnswerModel;
    self.titleLabel.text = synchronousAnswerModel.question;
    self.contentLabel.text = synchronousAnswerModel.answer;
    self.dateLabel.text = [NSDate stringFromTimestamp:synchronousAnswerModel.createDate];
}
@end
